package cn.edu.njnu.opengmpback.Modeling.dao;

import cn.edu.njnu.opengmpback.Modeling.entity.ConceptMaterial;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description
 * @Auther wyjq
 * @Date 2022/4/6
 **/

@Repository
public interface ConceptMaterialDao extends MongoRepository<ConceptMaterial,String> {
//    ConceptMaterial findById(String materialId);

    Page<ConceptMaterial> findAllByNameLikeIgnoreCase(String searchText,Pageable pageable);
    Page<ConceptMaterial> findAllByDescriptionLikeIgnoreCase(String searchText,Pageable pageable);
}